<!DOCTYPE html>
<html lang="ch">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    //请输入一个5位数，逆向打印这个数字
    var num = prompt("请输入5位数");
    var wan =parseInt(num/10000);
    var qian =parseInt(num/1000%10);
    var bai =parseInt(num/100%10);
    var shi =parseInt(num/10%10);
    var ge =parseInt(num%10);
    console.log(num);
    console.log(wan);
    console.log(qian);
    console.log(bai);
    console.log(shi);
    console.log(ge);
    console.log(ge,shi,bai,qian,wan)
    </script>